Dungeonpunk is a subgenre of fantasy that applies the gritty, cynical, and "low-life, high-tech" ethos of Cyberpunk to a magical world. The core concept of Dungeonpunk is the treatment of magic as a commonplace, often industrialized, form of technology ("magitek"). In these settings, magic is not rare, mysterious, or wondrous; it is a mundane part of everyday life that powers cities, fuels economies, and creates social stratification.

The genre often explores themes of corruption, social inequality, and urban decay through a fantasy lens. It is primarily a literary and tabletop role-playing game (TTRPG) genre, defined by its narrative themes and world-building rather than a specific fashion or lifestyle aesthetic.

While fantasy fiction with a darker, more cynical tone (often called "grimdark") has existed since the mid-20th century, Dungeonpunk as a defined genre was codified in the 1990s and early 2000s through the world-building of tabletop role-playing games. The Dungeons & Dragons setting Planescape (1994) introduced many of the visual and philosophical elements, with its grimy, multicultural city at the center of the multiverse.

However, the quintessential Dungeonpunk setting is widely considered to be Eberron (2004), another Dungeons & Dragons world. Eberron was explicitly built around the Dungeonpunk trope, featuring a society recovering from a magical world war, with lightning-powered railways, magically-sentient robots (the Warforged), and powerful guilds that function like megacorporations. It is often cited as the trope codifier for the genre.

The visual identity of Dungeonpunk is a blend of traditional fantasy with anachronistic or industrial elements. The key concept is "Magitek" —magic that functions like technology. This can include:

Paralleling Cyberpunk 's "High Tech, Low Life," the ethos of Dungeonpunk is "High Magic, Low Life." In these worlds, incredible magical power exists, but it does not create a utopia. Instead, it is often controlled by corrupt governments, powerful guilds, or criminal syndicates, and the average person's life is still grim and difficult. Stories often adopt a noir tone, following anti-heroes, detectives, or criminals navigating a morally gray world. The genre uses its magical setting to explore real-world themes of class struggle, industrial pollution, and the corrupting influence of power.